package com.wxproject.demo.Service;

import com.wxproject.demo.Entity.AO.FolderCreateAO;
import com.wxproject.demo.Entity.Model.UpLoadFileDO;
import com.wxproject.demo.Entity.VO.*;

import java.util.List;

/**
 * @author zqf
 * @date 2021/4/11 22:18
 * @description
 */
public interface UserFileService {
    Integer uploadFile(UpLoadFileDO userFile);

    List<UpLoadFileVO> getMyFileList(String userId);

    Integer deleteFileById(String userId,String id, String date);

    Integer publicFile(String id, String userId, String date);

    List<UpLoadFileVO> getPublicFile(String userId);

    Integer alterFilePublic(String userId,String id, Integer state, String date);

    List<CarouselImgVO> getCarouselImg();

    Integer delCarouselImg(String id);

    List<CarouselAdminVO> getAdminCarouselImg();

    Integer createFolder(FolderCreateAO folderCreateAO);

    List<FolderVO> getMyFolder(String userId);

    NextFileVO getNextFolder(String id);

    List<Object> searchFile(String name,Integer page,Integer pageSize);

    List<Object> getAllPublicFile(Integer page, Integer pageSize);

    int uploadPublicFile(UpLoadFileDO userFile);

}
